package com.onesports.intelligent.k12.polarlight.domain.entity.course;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import com.onesports.intelligent.k12.polarlight.common.domain.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.ArrayTypeHandler;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程配置表
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName(value = "course",autoResultMap = true)
public class Course extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 课程名称
     */
	private String courseName;

	/**
	 * 课程编码
	 */
	private String courseCode;
    /**
     * 课程分类id
     */
	private String courseClassifyId;
    /**
     * 课程小图
     */
	private String imgUrl;
    /**
     * 课程主图
     */
	@TableField(value = "main_url",typeHandler = ArrayTypeHandler.class,jdbcType = JdbcType.ARRAY)
	private String[] mainUrl;
    /**
     * 课程详情
     */
	private String courseDetail;
    /**
     * 课程分阶id
     */
	private String courseSubLevelId;

}
